<?php
class NewsRelation extends CActiveRecord {

    public $newsId;
    public $partnerid;
    
    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function tableName() {
        return 'news_relation';
    }
    
    public function relations() {
        return array(
            'partner'=>array(self::BELONGS_TO, 'Partner', array('partnerId'=>'partnerid')),
        );
    }
}
